//
//  AccountView.m
//  Village
//
//  Created by longrise on 2017/9/7.
//  Copyright © 2017年 程虎. All rights reserved.
//

#import "AccountView.h"

@implementation AccountView

- (instancetype)initWithFrame:(CGRect)frame{
    self=[super initWithFrame:frame];
    if (self) {
    }
    _headview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kDeviceWidth, 10*kScreenScaleY)];
    _headview.backgroundColor = [UIColor redColor];
    [self addSubview:_headview];
    _namelable = [[UILabel alloc] initWithFrame:CGRectMake(0, 50*kScreenScaleY, 100*kScreenScaleX, 30*kScreenScaleY)];
    _namelable.text = @"头像";
    [self addSubview:_namelable];
    _portraitImageView = [[UIImageView alloc] initWithFrame:CGRectMake(250*kScreenScaleX, 30*kScreenScaleY, 70*kScreenScaleX, 70*kScreenScaleY)];
    _portraitImageView.image = [UIImage imageNamed:@"header"];
    [self addSubview:_portraitImageView];
    
    {
        return self;
    }
    
    
    
}

@end
